﻿<!--revision $Id$-->
<Window x:Class="GridTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:coll="clr-namespace:System.Collections;assembly=mscorlib"
	xmlns:parts="clr-namespace:OpenWPFChart.Parts;assembly=OpenWPFChart.Parts"
	Name="window"
    Title="Coordinate Grids test" SizeToContent="WidthAndHeight">
	
	<Window.Resources>
		<coll:ArrayList x:Key="series">
			<sys:String>one</sys:String>
			<sys:String>two</sys:String>
			<sys:String>three</sys:String>
			<sys:String>fore</sys:String>
			<sys:String>five</sys:String>
			<sys:String>six</sys:String>
			<sys:String>seven</sys:String>
			<sys:String>eight</sys:String>
			<sys:String>nine</sys:String>
			<sys:String>ten</sys:String>
		</coll:ArrayList>
	</Window.Resources>
	
	<DockPanel>
		<!-- Menu -->
		<Menu DockPanel.Dock="Top">
			<MenuItem Header="_File">
				<MenuItem Header="_Exit" Click="Exit_Click"/>
			</MenuItem>
			<MenuItem Header="_View">
				<MenuItem Header="Zoom_In (Ctrl+NumPad+)" Command="Zoom" CommandParameter="1.2"/>
				<MenuItem Header="Zoom_Out (Ctrl+NumPad-)" Command="Zoom" CommandParameter="-1.2"/>
			</MenuItem>
		</Menu>
		
		<Grid>
			<parts:Grid Name="hGrid" Orientation="Horizontal"
						Pen="{Binding ElementName=window, Path=HorizontalGridPen}"
						GridVisibility="{Binding ElementName=window, Path=HorizontalGridVisibility}"
						Fill="Cornsilk">
				<parts:Grid.HorizontalScale>
					<parts:ChartLinearScale Start="200" Stop="-250" TickStep="20"/>
				</parts:Grid.HorizontalScale>
				<parts:Grid.VerticalScale>
					<parts:ChartLinearScale Start="0" Stop="150" TickStep="20"/>
				</parts:Grid.VerticalScale>
			</parts:Grid>
			<parts:Grid Name="vGrid"
						Pen="{Binding ElementName=window, Path=VerticalGridPen}"
						GridVisibility="{Binding ElementName=window, Path=VerticalGridVisibility}"
						Fill="LightGreen">
				<parts:Grid.HorizontalScale>
					<!--<parts:ChartLinearScale Start="200" Stop="-250" TickStep="20"/>-->
					<parts:ChartLogarithmicScale Start="1" Stop="1000" Scale="150"/>
					<!--<parts:ChartSeriesScale Series="{StaticResource series}" 
											Start="one" Stop="ten" Scale="50"/>-->
				</parts:Grid.HorizontalScale>
				<parts:Grid.VerticalScale>
					<parts:ChartLinearScale Start="0" Stop="150" TickStep="20"/>
				</parts:Grid.VerticalScale>
			</parts:Grid>
		</Grid>
	</DockPanel>
</Window>
